<include file="public@header"/>
</head>
<body>
<form class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('room/index')}">所有班级</a></li>
        <li><a href="{:url('room/add')}">添加班级</a></li>
    </ul>
    <form class=" well form-inline margin-top-20" action="{:url('room/index')}" method="get">
        班级名称:
        <input type="text" name="name" class="form-control" style="" value="{$Request.param.name}">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('room/index')}">清空</a>
    </form>
    <div class="table-actions">
        <form method="post" class="js-ajax-form margin-top-20" action="{:url('room/index')}">
        <button class="btn btn-sm btn-danger js-ajax-submit" type="submit"
                data-action="{:url('room/delAll')}" data-subcheck="true">删除所选
        </button>
    </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                <th width="50">ID</th>
                <th>班级名称</th>
                <th>所属学校</th>
                <th width="160">{:lang('ACTIONS')}</th>
            </tr>、
            </thead>
            <foreach name="room" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="{$vo.id}"></td>
                    <td>{$vo.id}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.school_name}</td>
                    <td>
                        <a class="btn btn-xs btn-primary" href="{:url('room/edit',array('id'=>$vo['id']))}">编辑</a>0


                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('room/delete',array('id'=>$vo['id']))}">删除</a>
                    </td>
                </tr>
            </foreach>
        </table>
    <div class="pagination">{$page}</div>
</form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>